package com.ly.spring;

/**
 * Company 源辰信息
 *
 * @author navy
 * @date 2024/11/2
 * Email haijunzhou@hnit.edu.cn
 */
public class Demo {

    private String name;

    public void hello(){
        System.out.println("hello " + name + "!");
    }

    public void init(){
        System.out.println("初始化方法: " + name);
    }

    public void destroy(){
        System.out.println("销毁方法: " + name);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


}
